export default {
	type: 'AreaChart',
	describe: '',
	name: 'areaChart',
	title: '面积图',
	w: 6,
	h: 8,
	// 类别样式  默认 w100% s1
	showW: '600px',
	showH: '400px',
	showS: 0.3,
	// 预设样式
	viewW: '672px',
	viewH: '296px',
	viewS: 0.5,
	sort: 15,
	showDataBtn: true, // 是否展示数据按钮
	showStyleBtn: true, // 是否展示样式按钮
	showCopyBtn: true, // 是否展示复制按钮
	showDeleteBtn: true, // 是否展示删除按钮
	style: {
		// 标题样式
		titleShow: true,
		title: '面积图',
		titleSize: 16,
		titleColor: '#333',
		titleWeight: true,
		titleStyle: false,
		titleLine: false,
		titleIconShow: false,
		titleIcon: 'icon-T-gongye',
		titleIconColor: '#333',
		titleIconSize: 10,
		titleEndShow: false,
		titleEnd: '查看更多',
		titleEndSize: 12,
		titleEndColor: '#1f87e8',
		titleEndWeight: false,
		titleEndStyle: false,
		titleEndLine: false,
		titleEndIconShow: false,
		titleEndIcon: 'icon-T-gongye',
		titleEndIconColor: '#333',
		titleEndIconSize: 12,
		align: 'space-between',
		// 图表样式
		chartType: 'basic', // basic, stack, percent
		chartColor: ['#1677FF', '#F5222D', '#FAAD14', '#52C41A', '#2F54EB', '#722ED1'],
		showLabel: false,
		showPoint: true, // 是否显示数据点
		smooth: false, // 是否平滑曲线
		showLegend: true,
		legendPosition: 'top-left', // top-left, top-center, top-right, bottom-left, bottom-center, bottom-right
		// 全局背景
		bgImg: '',
		bgColor: '#ffffff',
		borderStyle: 'solid',
		borderColor: '#333',
		borderWidth: 0,
		paddingLock: true,
		paddingT: 20,
		paddingB: 20,
		paddingL: 20,
		paddingR: 20,
		bgRTL: 5,
		bgRTR: 5,
		bgRLock: true,
		bgRBL: 5,
		bgRBR: 5,
		shadowX: 0,
		shadowY: 4,
		shadowColor: '#ebebeb',
		shadowDegree: 10
	},
	data: {
		xField: {
			value: 'year',
			field: 'year',
			alias: ''
		},
		yField: {
			value: 'value',
			field: 'value',
			alias: ''
		},
		seriesField: {
			value: 'category',
			field: 'category',
			alias: ''
		},
		chartData: {
			value: [
				{ year: '2016', value: 38, category: '系列1' },
				{ year: '2017', value: 52, category: '系列1' },
				{ year: '2018', value: 61, category: '系列1' },
				{ year: '2019', value: 145, category: '系列1' },
				{ year: '2020', value: 48, category: '系列1' },
				{ year: '2021', value: 38, category: '系列1' },
				{ year: '2022', value: 28, category: '系列1' },
				{ year: '2016', value: 28, category: '系列2' },
				{ year: '2017', value: 42, category: '系列2' },
				{ year: '2018', value: 71, category: '系列2' },
				{ year: '2019', value: 125, category: '系列2' },
				{ year: '2020', value: 58, category: '系列2' },
				{ year: '2021', value: 48, category: '系列2' },
				{ year: '2022', value: 58, category: '系列2' }
			],
			field: 'chartData',
			alias: ''
		}
	},
	// 选择静态/数据源
	dataSetConfig: {
		dataSetType: 0, // 0静态  1数据源
		dataSetJson: {}, // 选择数据源  获取数据的接口参数
		dataSetId: undefined // 选中哪条数据灌倒组件中的标识
	}
}
